﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonType
{
    public struct VotePieceQuestion
    {
        public long questionID; //投票问题ID;
        public string questionName;  //投票标题;
        public int questionVoteNum;   //投票总数;
        public DateTime startTime;   //投票开始时间;
        public DateTime endTime;  //投票截止时间;
        public bool isActive;    //当前投票是否处于激活状态;
        public int choiceNum;   //当前问题选项个数;
    }
    public struct VotePieceChoice
    {
        public long questionID;  //投票问题ID;
        public long choiceID;   //投票选项ID;
        public string choiceContent;   //投票选项内容;
        public int choiceVoteNum;   //当前投票选项总数;
    }
    public struct UserInfo
    {
        public long ID;//用户ID
        public string userName;//用户名    //name是access保留关键字  改为userName
        public string nickName;//昵称
        public string pass;//用户密码
        public DateTime registerTime;//注册时间
        public int publishedNewsID;//发布的新闻ID
        public int publishedCommentID;//发表的评论ID
        public int publishedMessageID;//发表的留言ID
        public int qq;//qq号
        public string msn;//msn号
        public string email;//用户email
        public int userType;  //用户类型
        public string icon;  //头像URL
    }
    public struct ArticalPiece
    {
        public int ID; //新闻ID	//从函数接收返回值用
        public string title;//新闻标题
        public string authorID;//新闻作者ID
        public DateTime publishTime;//发布时间	//从函数接收返回值用
        public string publisher;//发布人
        public string content;//文章内容
        public int numView;//从函数接收返回值用
    }
    public struct CommentPiece
    {
        public int ID;//评论ID	//从函数接收返回值用
        public int newsID;//评论所关联的新闻ID	//从函数接收返回值用
        public string authorID;//评论作者ID
        public DateTime publishTime;//发表时间
        public string content;//评论内容
    }
    public struct MessagePiece
    {
        public int ID;
        public string authorID;
        public DateTime publishTime;
        public string content;
    }
}
